import wx
import wx.html2


class MyBrowser(wx.Dialog):
    def __init__(self, *args, **kwds):
        wx.Dialog.__init__(self, *args, **kwds)
        sizer = wx.BoxSizer(wx.VERTICAL)
        self.browser = wx.html2.WebView.New(self)
        sizer.Add(self.browser, 1, wx.EXPAND, 10)
        self.SetSizer(sizer)
        self.SetSize((700, 700))


def get_player(link_url):
    app = wx.App()
    dialog = MyBrowser(None, -1)
    dialog.browser.LoadURL(
        url=link_url
    )
    dialog.Show()
    app.MainLoop()


if __name__ == "__main__":
    get_player("http://cdn.76long.com/cs1/?id=MjMxZmxwNmIxdEQxalZRb21yaEZaTUNGdGNZOXo1OUtnVS81Y24zVFVtaExxQkxPWUFVNWxpVUVRK0hLSHNoY2pGcmdveU1PcVFRYk9iQUdNbU96ZlViNzMwRXhqTnZUUEIvWS9ITzRCVXlvTFBJL3dkbEFaclE5Vi92L0dBUVdIVFlMS0ZWcGc2eXduNnpMMXVGU2RHWnBpdmtzMi9UaERJd24wVjI4U3Zvdw==")
